package io;
import java.io.*;
public class DataInAndOut {
    public static void main(String[] args) {
//        try {
//
//            DataOutputStream dout=new DataOutputStream(new FileOutputStream("E:\\Temp\\java68\\3.txt"));
//            dout.writeInt(1000);
//            dout.writeBoolean(2>1);
//            dout.writeBoolean(2<1);
//            dout.writeDouble(Math.PI);
//            dout.writeLong(2939393933L);
//            dout.writeChar('刘');
//            dout.close();
//        } catch (Exception e) {
//            e.printStackTrace();
//        }

        try {
            DataInputStream din=new DataInputStream(new FileInputStream("E:\\Temp\\java68\\3.txt"));
            int i=din.readInt();
            System.out.println(i);
            boolean f1=din.readBoolean();
            boolean f2=din.readBoolean();
            System.out.println(f1+","+f2);
            double d=din.readDouble();
            System.out.println(d);
            long l=din.readLong();
            System.out.println(l);
            char c=din.readChar();
            System.out.println(c);
            din.close();
        } catch (Exception e) {
            e.printStackTrace();
        }


    }
}
